<template>
	<el-drawer title="招标保证金详情" v-model="visible" :size="800" destroy-on-close @closed="$emit('closed')">
		<el-container v-loading="loading">
			<el-main>
				<el-form>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="关联项目" prop="inviteTitle">{{form.inviteTitle}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="投标企业" prop="entName">{{form.entName}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="保证金金额" prop="deposit">{{form.deposit}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="收取时间" prop="revTime">{{form.revTime}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="当前状态" prop="status">
								<el-tag v-if="form.status=='0'" type="success" effect="dark">未退</el-tag>
								<el-tag v-else-if="form.status=='1'" type="primary" effect="dark">已退</el-tag>
								<el-tag v-else type="info" effect="dark">未知</el-tag>
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="退回时间" prop="backTime">{form.backTime}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-form-item label="备注说明" prop="remark">{{form.remark}}</el-form-item>
				</el-form>
				<el-footer style="text-align: center;">
					<el-button @click="visible=false">关闭</el-button>
				</el-footer>
			</el-main>
		</el-container>
	</el-drawer>
</template>

<script>
export default {
	emits: ['success', 'closed'],
	components: {
	},
	data() {
		return {
			loading: false,
			form: {
				recordId:'',
				inviteTitle:'',
				entName:'',
				deposit:0,
				revTime:'',
				backTime:'',
				remark:'',
				status: '0',
			},
			visible: false,
			isSaveing: false,
		}
	},
	mounted() {

	},
	methods: {
		//显示
		open(model){
			this.model=model;
			this.visible = true;
			return this;
		},
		//表单注入数据
		setData(data){
			this.form.recordId = data.recordId
			this.form.inviteTitle = data.inviteTitle
			this.form.entName = data.entName
			this.form.revTime = data.revTime
			this.form.backTime = data.backTime
			this.form.deposit = data.deposit
			this.form.remark = data.remark
			this.form.status = data.status
		},
	}
}
</script>

<style>
</style>
